<template>
    <div class="root-node">
        <node-switch :pname="pname" :pvalue="pvalue"></node-switch>
    </div>
</template>

<script lang="ts">
import _ from "lodash";
import { Component, Prop, Vue, Inject, Provide } from "vue-property-decorator";

@Component({
    components: {
        NodeSwitch: () => import("./NodeSwitch.vue")
    }
})
export default class RootNode extends Vue {
    @Prop() public pname!: string;
    @Prop() public pvalue!: any;

    //@Provide("object-can-edit")
    @Prop({ required: false, default: false })
    public canEdit!: boolean;
}
</script>